package com.ht.safe.entity;

import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: 薄成文 13-7-19 上午10:58
 * To change this template use File | Settings | File Templates.
 */
public class Door {
    private String name;
    private String code;

    /**
     * 所属门控制器
     */
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "door_controller_id")
    private DoorController doorController;

    /**
     * 所属门组
     */
    private DoorGroup doorGropu;

}
